#include <string>
#pragma once
#define ElemType std::string
class TNode
{
public:
	TNode(ElemType data);
	~TNode();
	TNode* getLeft();
	TNode* getRight();
	void addTNode(ElemType elem);
	void inTaversal();
	void preTaversal(unsigned int k);
	void tailTaversal();
	void deleteNode();
private:
	char* word;
	int count;
	TNode* left;
	TNode* right;
};
